import axios from "axios"
export default {
    namespaced: true,
    state: {
        details:[]
    },
    mutations: {
        getDetailPhotoData(state, detailPhotoData) {
            state.details = detailPhotoData.data.photos
            // console.log(state.details[0].olink);
        }

    },
    actions: {
        getDetailPhotoData({
            commit
        },data) {
            axios({
                method: "get",
                url: `/mmdb/movie/photos/${data}/list.json`
            }).then((res) => {
                commit("getDetailPhotoData", res.data)
            })
        }
    }
}